package com.un.ebs.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/4/19 20:45
 */
@Getter
public enum ColumnRefTypeEnum implements IEnum{

    FK(0, "外键"),
    Enum(1, "枚举"),
    Diction(2, "字典"),
    Other(3, "其它");

    @EnumValue
    private final int value;
    private final String desc;

    ColumnRefTypeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public int getCode() {
        return this.value;
    }
}
